{% extends "rest_base.html" %}
{% block csssrc %}
	<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}js/spacegallery/css/spacegallery.css" />
	<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}js/spacegallery/css/spacegallery_custom.css" />
{% endblock %}
{% block scriptsrc %}
	<script type="text/javascript" src="{{STATIC_URL}}js/res_intro_ad.js" ></script>
	<script type="text/javascript" src="{{STATIC_URL}}js/spacegallery/js/eye.js"></script>
	<script type="text/javascript" src="{{STATIC_URL}}js/spacegallery/js/utils.js"></script>
	<script type="text/javascript" src="{{STATIC_URL}}js/spacegallery/js/spacegallery.js"></script>
	<script type="text/javascript">
	   (function($){
	       EYE.register(function(){
	           $('#res_pic').spacegallery({loadingClass: 'loading'});
	       }, 'init');
	   })(jQuery);
	</script>
{% endblock %}
{% block left_content %}
	<table class="res_left_intro"><tbody>
	    <tr>
		    <td class="res_alone_name" colspan="2">{{rest.name}}</td>
	    </tr>
        <tr>
	        <td class="text_right" width="30%">主打菜：</td>
	        <td class="text_left">{{rest.cuisine.name}}</td>
        </tr>
        <tr>
	        <td class="text_right" width="30%">地址：</td>
	        <td class="text_left">{{rest.address}}</td>
        </tr>
        <tr>
	        <td class="text_right" width="30%">营业时间：</td>
	        <td class="text_left">{{rest.open_time}}-{{rest.close_time}}</td>
        </tr>
        <tr>
	        <td class="text_right" width="30%">人均消费：</td>
	        <td class="text_left">{{rest.spend.value}}</td>
        </tr>
    </tbody></table>
{% endblock %}
{% block right_content %}
	<div class="res_right_title">招牌菜</div>                       
    
    <!-- -------------------------- 招牌菜图片 轮换广告-------------------------------->
           <DIV id=lantern_slide>
              <div class="ge" id="ge" >
                 <div class="pic" id="bimg">
                 	{% for ad_img in rest.rest_ad_img_set.all%}
	                    <DIV {% if forloop.counter == 1 %} class="dis" {% else %} class="undis" {% endif %} name="f">
	                    	<img src="/image/{{ad_img.img}}">
	                    </DIV>
                    {% endfor %}
                   
                    <div id="font_hd">        
                       <div class="lkff" id="info">
                       		{% for ad_img in rest.rest_ad_img_set.all%}
	                            <DIV {% if forloop.counter == 1 %} class="dis" {% else %} class="undis" {% endif %} name="f">
	                           		{{ad_img.ad_word}}
	                           	</DIV>
                           	{% endfor %}
                       </div>
                  
                       <div id="simg">
                       		{% for ad_img in rest.rest_ad_img_set.all%}
                          		<DIV {% if forloop.counter == 1 %} class="" {% else %} class="f1"  {% endif %} onclick=play(x[{{forloop.counter0}}],{{forloop.counter0}}) name="f">{{forloop.counter}}</DIV>
                          	{% endfor %}
                       </div>
                   </div>
                </div>
            </div>
         </DIV>
              
             
          <!-- -------------------------- 招牌菜图片 轮换广告 结束-------------------------------->  
                   
    <div class="res_alone_intro">
	    <div class="res_right_title2">餐厅简介</div>
        <div class="res_word_intro">
	        <p>{{rest.desc}}</p>
        </div>
        <!------------- 餐厅环境图片  ------------------------->
                <div class="res_pic_intro">
                    <div id="res_pic" class="spacegallery">
				      	{% for intro_img in rest.rest_intro_img_set.all%}
							<img src="/image/{{intro_img.img}}" />
						{% endfor %}
                   </div>
                </div>
              <!------------- 餐厅环境图片  结束------------------------->
    </div>
    <div class="res_sy_dp">
              <div class="res_right_title2">用户点评</div>
              <ul>
                <li><div class="res_dp_tx"><img src="{{STATIC_URL}}image/comment/tx1.jpg"><br>kiluua</div>
                    <div class="res_sy_dp_container">
                      <div class="res_dp_date">发表于：2011-11-21 12:39</div>
                      <div class="res_dp_content">挺好吃的一家店，面食很正宗，价格也不贵，环境都几好啊！5个人吃100快左右，很不错，网上点餐也很方便，希望多点优惠！！！午餐推荐！！</div>
                    </div>
                </li>
                
                <li><div class="res_dp_tx"><img src="{{STATIC_URL}}image/comment/tx1.jpg"><br>kiluua</div>
                    <div class="res_sy_dp_container">
                      <div class="res_dp_date">发表于：2011-11-21 12:39</div>
                      <div class="res_dp_content">挺好吃的一家店，面食很正宗，价格也不贵，环境都几好啊！5个人吃100快左右，很不错，网上点餐也很方便，希望多点优惠！！！午餐推荐！！</div>
                    </div>
                </li>
                
                 
                <li><div class="res_dp_tx"><img src="{{STATIC_URL}}image/comment/tx1.jpg"><br>kiluua</div>
                    <div class="res_sy_dp_container">
                      <div class="res_dp_date">发表于：2011-11-21 12:39</div>
                      <div class="res_dp_content">挺好吃的一家店，面食很正宗，价格也不贵，环境都几好啊！5个人吃100快左右，很不错，网上点餐也很方便，希望多点优惠！！！午餐推荐！！</div>
                    </div>
                </li>
                
              </ul>
              </div>           
{% endblock %}
